<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<table align="center">
		<tr>
			<td colspan="3"><font color="orange" size="7">★</font> <font
				size="5">${requestScope.pto.productName }</font> <font
				color="orange" size="3">ㅣ</font> <font size="3">${requestScope.pto.productIntroduce}</font>
				<hr color="orange"></td>
		</tr>
		<tr>
			<td width="50"><img src="reservation/photo/left.jpg" width="100"></td>
			<td width="600" height="350"><img
				src="reservation/photo/${requestScope.photo[0].productPhotoName}" width="600"
				height="350"></td>
			<td width="50"><img src="reservation/photo/right.jpg"
				width="100"></td>
		</tr>
		<tr>
			<td colspan="3" align="center"><c:forEach
					items="${requestScope.photo}" var="photo">
					<img src="reservation/photo/${photo.productPhotoName}" height="100" width="100">
				</c:forEach>
				<hr color="orange"></td>
		</tr>
		<tr>
			<td colspan="3"><font color="orange" size="4">▷ 투어 코스</font><br>
		</tr>
		<tr>
			<td colspan="3">${requestScope.pto.productCourse }</td>
		</tr>
		<tr>
			<td colspan="3"><font color="orange" size="4">▷ 상세 정보</font><br>
		</tr>
		<tr>
			<td colspan="3">
				<table border="1" bordercolor="orange">
					<tr>
						<td width="150" align="center"><font size="3"><b>진행
									기간</b></font></td>
						<td align="center" width="250">
							${requestScope.pto.productStartDate } ~
							${requestScope.pto.productEndDate }
						<td width="150" align="center"><font size="3"><b>출발
									시간</b></font></td>
						<td width="250" align="center">
				      </td>
					</tr>
					<tr>
						<td width="150" align="center"><font size="3"><b>소요
									시간</b></font></td>
						<td width="150" align="center">${requestScope.pto.productLeadtime}
							시간</td>
						<td width="150" align="center"><font size="3"><b>투어
									정원</b></font></td>
						<td width="150" align="center">${requestScope.pto.productMaximumNumber}
							명</td>
					<td><hr color="orange"></td></tr>
				
				</table>
	</td>
	</tr>
	
	<c:forEach items="${requestScope.date }" var="date">
		<c:forEach items="${requestScope.time }" var="time">
		<tr>
		<td>${date.productDate }</td>
		<td>${time.productTime }</td>
		<td>
		<c:choose>
			<c:when test="${requestScope.pto.productMaximumNumber }==${time.productRreservationNumber}">
					<font color="예약완료" size="20">예약완료</font>
			</c:when>
			<c:otherwise>
								<input type="button" value="예약">
			</c:otherwise>
		</c:choose>
		</td>
		</c:forEach>
	</c:forEach>
	</table>
<form action="../reservation.do" method="post">
<input type="hidden" name="method" value="listAllProduct">
<input type="submit" value="전체 조회">
</form>
</body>
</html>